package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;
import com.itheima.pojo.User;

import java.util.List;

public interface UserService {
    public User findByUsername(String username);
    //马志强代码开始
    PageResult findByCondition(QueryPageBean queryPageBean);

    List<Role> findAllRole();

    void add(User user, Integer[] roleIds);

    User findById(Integer id);

    Integer[] findRoleById(Integer id);

    void edit(User user, Integer[] roleIds);

    void deleteById(Integer id);
    //，马志强代码over
}
